<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<title>中国刊网-首页</title>
<link href="css/index.css" rel="stylesheet" type="text/css" />
<link href="css/common_min-1.8.css" rel="stylesheet" type="text/css" />

<!--
[if lte IE 6]>
<link href="http://s3.calameoassets.com/calameo-v4/css/common_ie6.css?1288186639" rel="stylesheet" type="text/css" />
<![endif]
-->
	
</head>
<body >
	<div class="fla">
      	<div class="flag">
          	<div class="flag_1">欢迎进入中国刊网</div>
          	<div class="flag_2">
          		<c:if test="${sessionScope.user_session != null}">
          			//${sessionScope.user_session }
          			&nbsp; 
          			<a href="front/spaceMenu">个人中心</a>
          			<a href="user/user_exit">退出</a>
          		</c:if>
          		<c:if test="${sessionScope.user_session == null}">
		            <a href="html/userLogin.jsp" >登录</a>
		            <a href="html/userRegister.jsp" >注册</a>
	        	</c:if>    
	      		|
	            <a onclick="SetHome(window.location)" href="javascript:void(0)">设为首页</a>
	            <a onclick="AddFavorite(window.location,document.title)" href="javascript:void(0)">加入收藏</a>
         	</div>
     	</div>       
	</div>
	
	<div class="top">
		<div class="top-left"><a href="index.jsp"><img src="images/Logo1.gif" alt="中国刊网" /></a></div>
		<div class="top-right">
			<div class="top_right1">
			<ul>
				<li class="top-a1" style="margin-left:12px"><a href="front/createJournal">创建刊物</a></li>
				<li class="top-a1"><a href="front/apply_bw">加入编委</a></li>
				<li class="top-a2"><a href="front/submit_article">投稿</a></li>
				<li class="top-a2"><a href="subscribeB/findAllJudge">订阅</a></li>
			</ul>
			</div>
			
			<div class="input1">
				<form action="periodical/periodicalSearch" method="post" name="searchform" id="searchform">
					<input type="text" name="keywords" class="input1-a" value="" onfocus="this.value=''"/>
					<span class="top-a3"><a href="javascript:search()">搜索</a></span>
				</form>
			</div>
		</div>
	</div>
	
	<div class="all">
		<div class="head">
			<div id="focus-content">
				<div id="prlx" class="prlx prlx-cn">
					<div class="prlx-inner">
						<div class="prlx-slider">
							<ul class="prlx-background" style="left: -2850px; top: 0px;">
								<!--第一个轮转图标题 -->
								<li class="prlx-slide" id="prlx-slide-1b"></li>
								<!--第二个轮转图标题 -->
								<li class="prlx-slide" id="prlx-slide-3b"></li>
								<!--第三个轮转图标题 -->
								<li class="prlx-slide" id="prlx-slide-2b"></li>
								<!--第四个轮转图标题 -->
								<li class="prlx-slide" id="prlx-slide-4b"></li>        
							</ul>
							<ul class="prlx-foreground" style="left: -3600px; top: 0px;">
								<!--第一个轮转图内容 -->
								<li class="prlx-slide" id="prlx-slide-1f"></li>
								<!--第二个轮转图内容 -->
								<li class="prlx-slide" id="prlx-slide-3f"></li>
								<!--第三个轮转图内容 -->
								<li class="prlx-slide" id="prlx-slide-2f"></li>
								<!--第四个轮转图内容 -->
								<li class="prlx-slide" id="prlx-slide-4f"></li>        
							</ul>
						</div>
					</div>
					<ul class="prlx-selector">
						<li class="">
							<h3>创建</h3>
							创建属于自己的期刊
						</li>
						<li class="">
							<h3>浏览</h3>
							浏览期刊，文章，找到属于自己的那份热爱
						</li>
						<li class="">
							<h3>共享</h3>
							将其刊发送到个人网站或微博，与好友分享你的快乐
						</li>
						<li class="prlx-sel-item-selected">
						<h3>发布</h3>
							发布个人的文章，分享你的研究成果。
						</li>
					</ul>
				</div>            
			</div>
		</div>
		
		<div class="center">
			<div class="center-left">
				<div class="center-left-a">
					<div class="center-left-a1"><span class="title1">期刊分类导航</span></div>
					<div class="center-left-a2">
						<ul>
						<%-- 期刊分类导航开始front/periodicalfindByCategory?id=${c.categoryId } --%>
						<c:forEach var="c" items="${requestScope.categorys}" >
							<li><a href="periodical/periodicalCategory?periodical.categoryId=${ c.categoryId }"><b>${c.name}</b><br />${c.enName }</a></li>
						</c:forEach>
						<%-- 期刊分类导航结束 --%>
						</ul>
					</div>
				</div>
				<div class="center-left-b">
					<div class="center-left-a1"><span class="title1">热门刊物</span></div>
					<div class="publication">
					<%-- 刊物列表开始 --%>
						<c:forEach var="p_1" items="${requestScope.perPeriodicals_1}" varStatus="status">
							<c:if test="${status.index == 0}">
								<div class="publication-a">
									<a href="perPeriodical/perPeriodicalId?perPeriodical.perPeriodicalId=${ p_1.perPeriodicalId }"><img src="${p_1.periodical.cover }" /></a>
									<a href="perPeriodical/perPeriodicalId?perPeriodical.perPeriodicalId=${ p_1.perPeriodicalId }" >${p_1.periodical.name }---第${p_1.number }</a>
									<span>${p_1.introduce }...</span>
								</div>
							</c:if>
							<c:if test="${status.index > 0}">
								<div id="rebo_L_0" class="publication-c">
									<a href="perPeriodical/perPeriodicalId?perPeriodical.perPeriodicalId=${ p_1.perPeriodicalId }">${p_1.periodical.name }---第${p_1.number }期</a>
								</div>
							</c:if>
						</c:forEach>
					<%-- 刊物列表开结束 --%>
					</div>
				</div>
				<div class="center-left-c">
	            	<a href="${ads_bottom.url }"><img src="${ads_bottom.picSrc }" height="90px" width="219"/></a>
	            </div>
			</div>
			<div class="center-right">
				<div class="center-right-a2">
					<div class="center-right-a1"><span class="title1">最新期刊</span><%--<a href="#">更多</a>--%></div>
					<div class="col_left_top">
						<div class="col_left_top_menu">
							<%-- 期刊列表开始 --%>
							<c:forEach var="p_0" items="${requestScope.perPeriodicals_0}">
								<div class="col_left_top_ads">
									<div class="col_left_top_image">
										<a href="perPeriodical/perPeriodicalId?perPeriodical.perPeriodicalId=${ p_0.perPeriodicalId }"><img src="${p_0.periodical.cover }" width="100" height="140" /></a>
									</div>
									<div class="col_left_top_name">
										<a href="perPeriodical/perPeriodicalId?perPeriodical.perPeriodicalId=${ p_0.perPeriodicalId }">${p_0.periodical.name }-第${p_0.number}期</a>
									</div>
								</div>
							</c:forEach>
							<%-- 期刊列表结束 --%>
						</div>
					</div>
				</div>
				<div class="center-right-b"><a href="${ads_center.url }"><img src="${ads_center.picSrc }"  width="635px"  height="108"/></a></div>
				<div class="center-right-c">
					<div class="center-right-a1"><span class="title1">文章导读</span><%--<a href="#">更多</a>--%></div>
					<%-- 文章列表开始 --%>
					<div class="center-right-c1">
						<ul>
							<c:forEach var="a" items="${requestScope.articals}" varStatus="status" begin="0" end="9" step="1">
								<li><img src="images/icon.gif" align="middle"/>&nbsp;<a href="artical/articalDetialInfo.action?articalId=${a.articalId }">${ a.title }</a></li>	
							</c:forEach>
						</ul>
					</div>
					<div class="center-right-c1" style="float:right; margin-right:12px;">
						<ul>
							<c:forEach var="a" items="${requestScope.articals}" varStatus="status" begin="10" end="19" step="1">
								<li><img src="images/icon.gif" align="middle" />&nbsp;<a href="artical/articalDetialInfo.action?articalId=${a.articalId }">${ a.title }</a></li>	
							</c:forEach>
						</ul>
					</div>
					<%-- 文章列表结束 --%>
				</div>
			</div>
		</div>
	</div>

	<div class="foot">
		<div class="foot-m">
			<span><a href="admin/goDiffer?itemName=1">关于我们</a></span>
			<span><a href="admin/goDiffer?itemName=2">广告服务</a></span>
			<span><a href="admin/goDiffer?itemName=3">联系方式</a></span>
			<span><a href="admin/goDiffer?itemName=4">在线帮助</a></span>
			<span><a href="admin/goDiffer?itemName=5">版权声明</a></span>
			<span><a href="admin/goDiffer?itemName=7">团队介绍</a></span>
		</div>
		<div class="foot-m"><p>Copyright&copy;&nbsp;&nbsp;孔夫子旧书网&nbsp;&nbsp;2002-2012&nbsp;,&nbsp;All&nbsp;Rights&nbsp;Resrved&nbsp;&nbsp;京ICP证041501号&nbsp;&nbsp;海淀分局备案编号&nbsp;&nbsp;1101082227</p></div>
	</div>
	<script type="text/javascript" src="js/libs-1.0.js"></script>
	<script type="text/javascript" src="js/paihangbang.js"></script>
</body>
</html>
